/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package additional;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author DarkTerror
 */
public class Help {

    public static EntityManager em = null;

    public static EntityManager getEM() {
        if (em == null) {
            EntityManagerFactory emf =
                    Persistence.createEntityManagerFactory("alokasiPU");
            em = emf.createEntityManager();
        }
        
        return em;
    }
}
